//
//  QJSearchVCCell.m
//  QuanJieShopProject
//
//  Created by apple on 2018/2/5.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJSearchVCCell.h"

@implementation QJSearchVCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)cellUpdateWithModel:(SearchMdoel *)model{
    if (model) {
        [self.cellImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.original_img]] placeholderImage:[UIImage imageNamed:@"noImage"]];
        self.cellTitle.text = [NSString stringWithoutNilFormart:model.goods_name];
        
        NSString *number = [NSString stringWithoutNilFormart:model.sales];
        if ([number isEqualToString:@""]) {
            number = @"0";
        }
        self.cellNumber.text = [NSString stringWithFormat:@"销量 %@",number];
        NSString *price = [NSString stringWithoutNilFormart:model.shop_price];
        self.cellPrice.text = [NSString stringWithFormat:@"￥ %@",price];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
